package com.atguigu.fruit.dao;

import com.atguigu.fruit.bean.Fruit;

import java.util.List;

/**
 * @author BruceLee
 * @create 2022-02-28 14:58
 */
public interface FruitDao {
    //查询库存列表
    List<Fruit> getFruitList();

    //增加库存
    boolean addFruit(Fruit fruit);

    //修改库存
    boolean updateFruit(Fruit fruit);

    //根据名称查询特定库存
    Fruit getFruitByFname(String fname);

    //删除指定库存
    boolean delFruit(String fname);
    boolean delFruit(Integer fid);

}
